<template>
	<view>
		<view style="margin: 10upx;">
			<view class="header uni-ellipsis">{{informatin.name}}</view>
			<rich-text :nodes="informatin.content"></rich-text>
			<view class="uni-text-right uni-ellipsis">{{informatin.createTime}}</view>
		</view>
	</view>
</template>

<script>
	import {
		queryOne
	} from '@/api/information.js'
	export default {
		data() {
			return {
				informatin: {},
				id: ''
			}
		},
		methods: {
			getDetail() {
				queryOne(this.id).then(res => {
					this.informatin = res;
				})
			}
		},
		onLoad() {
			this.id = this.$Route.query.id;
			this.getDetail();
		}
	}
</script>

<style>
	page {
		background: #FFFFFF;
	}

	.header {
		line-height: 80upx;
		text-align: center;
	}
</style>
